#include <iostream>
#include "encoding.cpp"
#include "decoding.cpp"

using namespace std;

int main(void)
{
	string infname, oufname;
	char op;
	cout << "Encoding or decoding (e or d): ";
	cin >> op;
	cout << "Input filename: ";
	cin >> infname;
	cout << "Output filename: ";
	cin >> oufname;
	if(op == 'e')
		encode_main(infname, oufname);
	else if(op == 'd')
		decode_main(infname, oufname);
	else
		cout << "Error!" << endl;
	cout << "Done" << endl;
	return 0;
}